package com.sc.sc250601.cook.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    // 点赞同步队列
    public static final String LIKE_SYNC_QUEUE = "like.sync.queue";

    @Bean
    public Queue likeSyncQueue() {
        // durable: 是否持久化; exclusive: 是否排他; autoDelete: 是否自动删除
        return new Queue(LIKE_SYNC_QUEUE, true, false, false);
    }
}

